﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataStudio
{
    public static class Modules
    {
        public static IList<string> opens = new List<string>();

        public static bool hadModule(string type)
        {
            bool had = false;
            var p = from item in opens
                    where item == type
                    select item;
            if (p.ToList().Count > 0)
                had = true;
            else
                had = false;
            return had;
        }

        public static void RemoveTap(string type)
        {
            opens.Remove(type);
        }
    }
    
}
